<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/admin/jsp/common/HtmlHead.jsp"/>
<title>Insert title here</title>
</head>
<body>
	<s:form action="editDo" method="post">
		<s:hidden name="teacher.id"/>
		<table width="100%">
			<tr>
				<th>登录名</th>
				<td>
					<s:if test="teacher.id>0">
						<s:textfield name="teacher.loginName" disabled="true"/>
					</s:if>
					<s:else>
						<s:textfield name="teacher.loginName"/>
					</s:else>
				</td>
			</tr>
			<tr>
				<th>密码</th>
				<td>
					<input type="password" name="teacher.pwd"/>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<hr/>
				</td>
			</tr>
			<tr>
				<th>真实姓名</th>
				<td>
					<s:textfield name="teacher.realName"/>
				</td>
			</tr>
			<tr>
				<th>性别</th>
				<td>
					<s:radio list="%{getI18nMap('system.gender')}" name="teacher.gender"/>
				</td>
			</tr>
			<tr>
				<th>学历</th>
				<td>
					<s:select list="%{getI18nMap('system.education')}" name="teacher.education"/>
				</td>
			</tr>
			<tr>
				<th>所授科目</th>
				<td>
					<s:select list="subjectList" name="teacher.subjectId" listKey="id" listValue="name"/>
				</td>
			</tr>
			<tr>
				<th>手机号码</th>
				<td>
					<s:textfield name="teacher.telPhone"/>
				</td>
			</tr>
			<tr>
				<th>QQ号码</th>
				<td>
					<s:textfield name="teacher.oicqNum"/>
				</td>
			</tr>
			<tr>
				<th>Email</th>
				<td>
					<s:textfield name="teacher.email"/>
				</td>
			</tr>
			<tr>
				<th>简介</th>
				<td>
					<s:textarea name="teacher.introduction"/>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="提交"/>
				</td>
			</tr>
		</table>
	</s:form>
</body>
<jsp:include page="/admin/jsp/common/errorMessage.jsp"/>
</html>